//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-04A
TN_Widget.CreateTable([['New Ballet: Cinderella','Hammer Theatre Center','San Jose, CA','Saturday','5/18/2024','2:00 PM','6096426','New-Ballet--Cinderella-5-18-2024'],['New Ballet: Cinderella','Hammer Theatre Center','San Jose, CA','Saturday','5/18/2024','7:00 PM','6361180','New-Ballet--Cinderella-5-18-2024'],['New Ballet: Cinderella','Hammer Theatre Center','San Jose, CA','Sunday','5/19/2024','11:00 AM','6096428','New-Ballet--Cinderella-5-19-2024'],['New Ballet: Cinderella','Hammer Theatre Center','San Jose, CA','Sunday','5/19/2024','2:00 PM','6096427','New-Ballet--Cinderella-5-19-2024'],['San Jose Dance: The Little Mermaid','Hammer Theatre Center','San Jose, CA','Saturday','5/25/2024','1:00 PM','6313479','San-Jose-Dance--The-Little-Mermaid-5-25-2024'],['Valley Dance Theatre: Spring Repertory','Bankhead Theater','Livermore, CA','Saturday','5/25/2024','7:00 PM','6381494','Valley-Dance-Theatre--Spring-Repertory-5-25-2024'],['Valley Dance Theatre: Spring Repertory','Bankhead Theater','Livermore, CA','Sunday','5/26/2024','2:00 PM','6381495','Valley-Dance-Theatre--Spring-Repertory-5-26-2024'],['The Nutcracker - A New Red Light Series Tradition','Seacoast Repertory Theatre','Portsmouth, NH','Thursday','12/5/2024','7:30 PM','6154268','The-Nutcracker---A-New-Red-Light-Series-Tradition-12-5-2024'],['The Nutcracker - A New Red Light Series Tradition','Seacoast Repertory Theatre','Portsmouth, NH','Friday','12/6/2024','2:00 PM','6154269','The-Nutcracker---A-New-Red-Light-Series-Tradition-12-6-2024'],['The Nutcracker - A New Red Light Series Tradition','Seacoast Repertory Theatre','Portsmouth, NH','Friday','12/6/2024','8:00 PM','6154270','The-Nutcracker---A-New-Red-Light-Series-Tradition-12-6-2024'],['The Nutcracker - A New Red Light Series Tradition','Seacoast Repertory Theatre','Portsmouth, NH','Saturday','12/7/2024','2:00 PM','6154271','The-Nutcracker---A-New-Red-Light-Series-Tradition-12-7-2024'],['The Nutcracker - A New Red Light Series Tradition','Seacoast Repertory Theatre','Portsmouth, NH','Saturday','12/7/2024','8:00 PM','6154272','The-Nutcracker---A-New-Red-Light-Series-Tradition-12-7-2024'],['The Nutcracker - A New Red Light Series Tradition','Seacoast Repertory Theatre','Portsmouth, NH','Sunday','12/8/2024','2:00 PM','6154273','The-Nutcracker---A-New-Red-Light-Series-Tradition-12-8-2024'],['The Nutcracker - A New Red Light Series Tradition','Seacoast Repertory Theatre','Portsmouth, NH','Sunday','12/8/2024','7:30 PM','6154274','The-Nutcracker---A-New-Red-Light-Series-Tradition-12-8-2024'],['The Nutcracker - A New Red Light Series Tradition','Seacoast Repertory Theatre','Portsmouth, NH','Wednesday','12/11/2024','7:30 PM','6154275','The-Nutcracker---A-New-Red-Light-Series-Tradition-12-11-2024'],['The Nutcracker - A New Red Light Series Tradition','Seacoast Repertory Theatre','Portsmouth, NH','Sunday','12/15/2024','7:30 PM','6204957','The-Nutcracker---A-New-Red-Light-Series-Tradition-12-15-2024'],['The Nutcracker - A New Red Light Series Tradition','Seacoast Repertory Theatre','Portsmouth, NH','Wednesday','12/18/2024','7:30 PM','6204958','The-Nutcracker---A-New-Red-Light-Series-Tradition-12-18-2024'],['The Nutcracker - A New Red Light Series Tradition','Seacoast Repertory Theatre','Portsmouth, NH','Sunday','12/22/2024','7:30 PM','6204959','The-Nutcracker---A-New-Red-Light-Series-Tradition-12-22-2024']],'Ballet Repertory Theatre','http://www.ticketnetwork.com/ticket/Ballet-Repertory-Theatre-events.aspx');